﻿ @model SiteCredivale.ViewModels.usuarioViewModel

@{

    Layout = "~/Areas/Intranet/Views/Shared/_Layout.cshtml";

}

 
 @using (Html.BeginForm("Index", "Inicio", FormMethod.Post, new { @id = "form" }))
 {


       <div class="box_small">
       <h3>Login</h3>

      <br />
           @Html.ValidationSummary(true)
                        

                             <div class="editor-field">
                            <label class="txtLabel">
                                Usuário:</label>
                              @Html.EditorFor(model => model.Login)<br />
                              @Html.ValidationMessageFor(model => model.Login)
                                        
                              </div>
                                        
                         <div class="editor-field">
                            <label class="txtLabel">
                                Senha:</label>
                          @Html.PasswordFor(model => model.senha)<br />
                              @Html.ValidationMessageFor(model => model.senha)
                        </div>
                         <br />
                       <input id="enviar" type="submit" value="entrar" class="btn" />
         
          </div>
 }





   @if (ViewBag.msg_Error != null)
   {

  @Html.Raw("<script type='text/javascript'>errorAlert('Atenção','" + ViewBag.msg_Error + "');</script>")

   }
@if (TempData["sessao_ex"] != null)
{
    @Html.Raw("<script type='text/javascript'>showAlert('Aviso', '" + TempData["sessao_ex"].ToString() + "','sicoob');</script>")
    TempData.Remove("sessao_ex");
}